import { createApp, h } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
import '@/assets/css/common.less';
import locale from 'element-plus/lib/locale/lang/zh-cn';
import axios from '@/utils/request';
import { plugin } from 'echarts-for-vue';
import * as echarts from 'echarts';

const app = createApp(App);
app.config.performance = true;
app.config.globalProperties.echarts = echarts;
app.use(ElementPlus, {
	size: 'small',
	locale
});

app.use(plugin, {
	echarts,
	h
});

app.config.globalProperties.$http = axios;

app.use(store);
app.use(router);
app.mount('#app');
